<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
		<div class="form-group">
				<label for="c-name" class="control-label col-xs-12 col-sm-2">名称:</label>
				<div class="col-xs-12 col-sm-8">
						<input id="c-name" data-rule="0" class="form-control" name="row[name]" type="text" value="{$row.name|htmlspecialchars}" />
				</div>
		</div>
		<div class="form-group">
				<label for="c-cdnimg" class="control-label col-xs-12 col-sm-2">cdn图片:</label>
				<div class="col-xs-12 col-sm-8">
					<div class="input-group">
							<input id="c-cdnimg" class="form-control" name="row[cdnimg]" type="text" value="{$row.cdnimg}" />														
							<div class="input-group-addon no-border no-padding">
								<span>
								<button type="button" id="plupload-imagecdnimg" class="btn btn-danger" data-input-id="c-cdnimg" data-multiple="false" data-preview-id="p-cdnimg">
										<i class="fa fa-upload"></i> {:__('Upload')}
								</button>
								<div class="moxie-shim-html5">
										<input id="upyun_uploadcdnimg" class="upyun_upload" type="file" accept=".gif,.jpg,.jpeg,.tiff" tabindex="-1" data-preview-id="p-cdnimg" data-input-id="c-cdnimg"/>
								</div>
								</span>
							</div>
							<span class="msg-box n-right"></span>
					</div>
					<ul class="row list-inline plupload-preview" id="p-cdnimg" data-cdnurl="https://qd.andiff.net/"></ul> 
				</div>
		</div>
		<div class="form-group">
				<label for="c-thumb" class="control-label col-xs-12 col-sm-2">图片:</label>
				<div class="col-xs-12 col-sm-8">
						<div class="input-group">
								<input id="c-thumb" class="form-control" size="50" name="row[thumb]" type="text" value="{$row.thumb}" />
								<div class="input-group-addon no-border no-padding">
										<span><button type="button" id="plupload-imagethumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/webp" data-multiple="true" data-preview-id="p-thumb"><i class="fa fa-upload"></i>上传</button></span>
								</div>
								<span class="msg-box n-right"></span>
						</div>
						<ul class="row list-inline plupload-preview" id="p-thumb"></ul>
				</div>
		</div>
		<div class="form-group">
				<label for="c-listorder" class="control-label col-xs-12 col-sm-2">顺序:</label>
				<div class="col-xs-12 col-sm-8">
						<input id="c-listorder" data-rule="integer(+)" class="form-control" name="row[listorder]" type="number" value="{$row.listorder|htmlspecialchars}" />
				</div>
		</div>
						<div class="form-group">
								<label class="control-label col-xs-12 col-sm-2"></label>
								<div class="col-xs-12 col-sm-8">
										<button type="submit" class="btn btn-success btn-embossed">确定</button>
										<button type="reset" class="btn btn-default btn-embossed">重置</button>
								</div>
						</div>
		</form>
